package com.sugou.dao.support.bean;

import com.sugou.dao.enums.ResultType;
import com.sugou.dao.support.UpdateResultInfo;

public class UpdateResultBean extends Number implements UpdateResultInfo {
	private static final long serialVersionUID = -300452212312349484L;

	private int rowNum;
	
	public UpdateResultBean(int rowNum){
		this.rowNum=rowNum;
	}

	public boolean success() {
		return true;
	}

	public ResultType getType() {
		return ResultType.UPDATE;
	}

	public Number getRowNum() {
		return this.rowNum;
	}

	public int intValue() {
		return this.rowNum;
	}

	public long longValue() {
		return this.rowNum;
	}

	public float floatValue() {
		return this.rowNum;
	}

	public double doubleValue() {
		return this.rowNum;
	}

}
